package com.kun.base.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by likun on 2016/8/12 0012.
 */
@Controller
public class ErrorController {

    @RequestMapping("/public/notLogin")
    public void notLogin(HttpServletResponse response) throws IOException {
        response.sendError(401);
    }

    @RequestMapping("/public/lackOfCompetence")
    public void lackOfCompetence(HttpServletResponse response) throws IOException {
        response.sendError(403);
    }
}
